<%@ page language="java"  pageEncoding="UTF-8" contentType="text/html; charset=utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
 <head>
    <title>赞助企业</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="../css/back.css" rel="stylesheet" type="text/css">
     <script type="text/javascript" src="../js/kindeditor/kindeditor.js"></script>
	<link rel="stylesheet" type="text/css" 	href="../js/kindeditor/skins/default.css"></link>
	<script type="text/javascript" src="../js/jquery-1.4.2.js"></script>
	<script type="text/javascript">
	  function  checkSave(){
	    var  title=$("#title").val();
	    if(title.length==0){
	       alert("请填写企业名称");
	       $("#title").focus();
	       return false;
	    }
	    if (!KE.util.isEmpty('content')) $("#content").val(KE.util.getData('content'));
	  }
	
	</script>	
  </head> 
  <body>
       <div id="all">
	      <div id="main">
          <form method="post" action="../activity/addOrUpdateActivty.shtml" onsubmit="return checkSave()">
      <table align="center">
         <tr><td colspan="2" align="center">赞助企业</td></tr>
         <tr><td>语言类别：</td><td><select  name="activityTable.lanType" >
         <option value ="1" ${activityTable.lanType == 1?'selected':''} >中文</option>
         <option value ="2" ${activityTable.lanType == 2?'selected':''}>英文</option>
         </select></td></tr>
         <tr><td align="right">企业名称：</td><td><input type="text" size="45" id="title" maxlength="70" name="activityTable.title" value="${activityTable.title}" /></td></tr>
         <tr><td align="right">企业介绍：</td><td><textarea name="activityTable.content" id="content" cols="80" rows="20">${activityTable.content}</textarea></td></tr>
         <tr><td colspan="2" align="center">
         <input type="hidden" name="activityTable.type" value="5">
         <input type="hidden" name="activityTable.id" value="${activityTable.id}">
         <input type="submit" value="保存"/>&nbsp;&nbsp;<input type="reset" value="重置"/></td></tr>
      </table>
      </form>
      </div>
      </div>
<script type="text/javascript">
     	KE.show({
				id : 'content',
				loadStyleMode : false,
				resizeMode : 0, 
				 allowUpload:true, //允许上传图片 
				imageUploadJson:'<%=basePath%>/comutil/upload.shtml',    
				items : [
				'fontname', 'fontsize', '|', 'textcolor', 'bgcolor', 'bold', 'italic', 'underline',
				'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
				'insertunorderedlist', '|','image']
			});
			
  </script>
  </body>
</html>
